﻿using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using Abp.Domain.Repositories;
using Blog.ThirdPartyCallLogs;

namespace Blog.ThirdPartySystemCallLogs
{
    public class ThirdPartySystemCallLogAppService : BlogAppServiceBase, IThirdPartySystemCallLogAppService
    {
        private readonly IRepository<ThirdPartySystemCallLog, Guid> _thirdPartySystemCallLogRepository;

        public ThirdPartySystemCallLogAppService(
            IRepository<ThirdPartySystemCallLog, Guid> thirdPartySystemCallLogRepository
            )
        {
            _thirdPartySystemCallLogRepository = thirdPartySystemCallLogRepository;
        }

        public async Task<List<ThirdPartySystemCallLog>> GetAllThirdPartyCallLogListAsync()
        {
            List<ThirdPartySystemCallLog> list = await _thirdPartySystemCallLogRepository.GetAllListAsync();

            return list;
        }

        public async Task CreateThirdPartyCallLogAsync(ThirdPartySystemCallLog input)
        {
            await _thirdPartySystemCallLogRepository.InsertAsync(input);
        }
        
    }
}